//
//  ZYLFastLookLTView.m
//  Cartoon
//
//  Created by dllo on 15/7/14.
//  Copyright (c) 2015年 dllo. All rights reserved.
//
#import "BaseHeader.h"
#import "ZYLFastLookLTView.h"

@implementation ZYLFastLookLTView
- (void)dealloc
{
    [_myLabel release];
    [_img release];
    [super dealloc];
}

- (instancetype)initWithFrame:(CGRect)frame
{
    self = [super initWithFrame:frame];
    if (self) {
        [self createMyView];
    }
    return self;
}

/**
 *  自定义视图
 */
- (void)createMyView
{
    self.img = [[UIImageView alloc] initWithFrame:CGRectMake(10 * SCREEN_WIDTH / 375, 2.5 * SCREEN_HEIGHT / 667, 15 * SCREEN_WIDTH / 375, 15 * SCREEN_WIDTH / 375)];
    [self addSubview:self.img];
    [_img release];
    
    self.myLabel = [[UILabel alloc] initWithFrame:CGRectMake(self.img.frame.size.width + 15 * SCREEN_WIDTH / 375, self.img.frame.origin.y, 50 * SCREEN_WIDTH / 375, 20 * SCREEN_HEIGHT / 667)];
    self.myLabel.font = [UIFont systemFontOfSize:10];
    self.myLabel.textColor = [UIColor whiteColor];
    [self addSubview:self.myLabel];
    [_myLabel release];
}

+ (instancetype)ltViewWitnFrame:(CGRect)frame
{
    id result = [[[self alloc] initWithFrame:frame] autorelease];
    return result;
}

/*
// Only override drawRect: if you perform custom drawing.
// An empty implementation adversely affects performance during animation.
- (void)drawRect:(CGRect)rect {
    // Drawing code
}
*/

@end
